﻿  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
   <h1 class="page-header">客户信息</h1>
   <h6><button class="btn btn-success btn-xs khdisabled" data-toggle="modal" data-target="#addkh"><span class="glyphicon glyphicon-plus-sign"></span> 添加客户信息</button></h6>
   <div class="modal fade" id="addkh" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
     <div class="modal-content">
      <div class="modal-header">
       <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
       <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-plus-sign"></span> 添加客户信息</h4>
      </div>
      <div class="modal-body">
       <form class="form-horizontal" role="form" method="post" id="add_kh">
        <div class="form-group">
         <label for="inputEmail3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="text" placeholder="客户名字" class="form-control" id="kh_add_name" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-phone"></span>
           </div>
           <input type="text" placeholder="客户手机" class="form-control" id="kh_add_call" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-phone"></span>
           </div>
           <input type="text" placeholder="客户备用手机" class="form-control" id="kh_add_call_bk" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-home"></span>
           </div>
           <input type="text" placeholder="客户地址" class="form-control" id="kh_add_addr" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-time"></span>
           </div>
              <div class="disabled">
                <input type="text" data-toggle="tooltip" data-placement="left" title="点击解锁" placeholder="装机时间" class="form-control" id="kh_add_time"  value="<?php echo date('Ymd',time()); ?>" />
              </div>
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label"></label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-usd"></span>
           </div>
           <input type="text" placeholder="装机金额" class="form-control" id="kh_add_pri" />
          </div>
         </div>
        </div>
       </form>
      </div>
      <div class="modal-footer">
       <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
       <button type="button" class="btn btn-primary" onclick="kh_add();"><span class="glyphicon glyphicon-ok"></span> 保存</button>
      </div>
     </div>
    </div>
   </div>
   <div class="row placeholders">
    <h3 class="cover-heading">当前共有 <span class="glyphicon glyphicon-user"></span><span style="color:red" id="kh_num">
      <?php num('user_info'); ?></span> 名登记客户.</h3>
   </div>
   <h2 class="sub-header">客户信息查询</h2>
    <span class="navbar-form navbar-right" role="form"> 类型选择：
     <div class="input-group">
      <select class="form-control" id="selecter_kh"> <option value="name">名字</option> <option value="call_main" selected="selected">手机</option> <option value="call_bk">座机</option> <option value="addr">地址</option> <option value="time">时间</option> <option value="all">所有</option> </select>
     </div>
     <div class="input-group">
      <div class="input-group-addon">
       <span class="glyphicon glyphicon-search"></span>
      </div>
      <input type="text" placeholder="输入您要查找的内容" class="form-control" id="search_kh_val" />
     </div> </span>
     <div class="table-responsive">
    <table class="table table-hover">
     <thead>
      <tr class="alert alert-info">
       <th>客户名字</th>
       <th>客户手机</th>
       <th>客户备用电话</th>
       <th>装机时间</th>
       <th>客户住址</th>
       <th>装机金额</th>
      </tr>
     </thead>
     <tbody id="search_connent">
     </tbody>
    </table>
    </div>
   <span style="margin: 0 auto;" id="kh_search_err"></span>
  </div>
